package ${filePackageName};

import ${mybatisplusPackage}.RootMapper;
import ${entityPackage}.${upperEntityName};
import ${voPackage}.${upperEntityName}Vo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ${tableComment} mapper接口
 * 
 * @author ${projectAuthor}
 * @version 1.0
 * @date ${nowDate}
 */
public interface ${upperEntityName}Mapper extends RootMapper<${upperEntityName}> {

    /**
     * 查询单个
     * @param ${lowerPrimaryKey}
     * @return
     */
    public ${upperEntityName}Vo selectById(@Param("${lowerPrimaryKey}") ${primaryType} ${lowerPrimaryKey});

    /**
     * 分页查询
     * @param map
     * @return
     */
    public List<${upperEntityName}Vo> selectListByMap(Map<String,Object> map);

    /**
     * 查询总数
     * @param map
     * @return
     */
    public long selectCountByMap(Map<String,Object> map);

    /**
     * 修改
     * @param map
     * @return
     */
    public int updateByMap(Map<String,Object> map);

    /**
     * 删除
     * @param map
     * @return
     */
    @Override
    public int deleteByMap(Map<String,Object> map);
}